# -*- coding: utf-8 -*-

# Form implementation generated from reading ui file 'rs232_gui.ui'
#
# Created: Mon Jun 16 03:28:54 2008
#      by: PyQt4 UI code generator 4.3.3
#
# WARNING! All changes made in this file will be lost!

from PyQt4 import QtCore, QtGui

class Ui_Dialog(object):
    def setupUi(self, Dialog):
        Dialog.setObjectName("Dialog")
        Dialog.setWindowModality(QtCore.Qt.WindowModal)
        Dialog.resize(QtCore.QSize(QtCore.QRect(0,0,485,505).size()).expandedTo(Dialog.minimumSizeHint()))
        Dialog.setLayoutDirection(QtCore.Qt.LeftToRight)

        self.ekran = QtGui.QTextEdit(Dialog)
        self.ekran.setWindowModality(QtCore.Qt.WindowModal)
        self.ekran.setEnabled(True)
        self.ekran.setGeometry(QtCore.QRect(10,180,470,251))

        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(1)
        sizePolicy.setVerticalStretch(1)
        sizePolicy.setHeightForWidth(self.ekran.sizePolicy().hasHeightForWidth())
        self.ekran.setSizePolicy(sizePolicy)
        self.ekran.setProperty("cursor",QtCore.QVariant(QtCore.Qt.ForbiddenCursor))
        self.ekran.setReadOnly(True)
        self.ekran.setObjectName("ekran")

        self.pushButton = QtGui.QPushButton(Dialog)
        self.pushButton.setGeometry(QtCore.QRect(10,470,470,28))
        self.pushButton.setCheckable(True)
        self.pushButton.setObjectName("pushButton")

        self.layoutWidget = QtGui.QWidget(Dialog)
        self.layoutWidget.setGeometry(QtCore.QRect(10,10,465,166))
        self.layoutWidget.setObjectName("layoutWidget")

        self.hboxlayout = QtGui.QHBoxLayout(self.layoutWidget)
        self.hboxlayout.setObjectName("hboxlayout")

        self.gridlayout = QtGui.QGridLayout()
        self.gridlayout.setObjectName("gridlayout")

        self.label = QtGui.QLabel(self.layoutWidget)
        self.label.setObjectName("label")
        self.gridlayout.addWidget(self.label,0,0,1,1)

        spacerItem = QtGui.QSpacerItem(81,20,QtGui.QSizePolicy.Expanding,QtGui.QSizePolicy.Minimum)
        self.gridlayout.addItem(spacerItem,0,1,1,3)

        self.portComboBox = QtGui.QComboBox(self.layoutWidget)
        self.portComboBox.setObjectName("portComboBox")
        self.gridlayout.addWidget(self.portComboBox,0,4,1,3)

        self.label_2 = QtGui.QLabel(self.layoutWidget)
        self.label_2.setObjectName("label_2")
        self.gridlayout.addWidget(self.label_2,1,0,1,3)

        spacerItem1 = QtGui.QSpacerItem(71,20,QtGui.QSizePolicy.Expanding,QtGui.QSizePolicy.Minimum)
        self.gridlayout.addItem(spacerItem1,1,3,1,2)

        self.speedComboBox = QtGui.QComboBox(self.layoutWidget)
        self.speedComboBox.setObjectName("speedComboBox")
        self.gridlayout.addWidget(self.speedComboBox,1,5,1,2)

        self.label_3 = QtGui.QLabel(self.layoutWidget)
        self.label_3.setObjectName("label_3")
        self.gridlayout.addWidget(self.label_3,2,0,1,4)

        spacerItem2 = QtGui.QSpacerItem(71,20,QtGui.QSizePolicy.Expanding,QtGui.QSizePolicy.Minimum)
        self.gridlayout.addItem(spacerItem2,2,4,1,2)

        self.fieldLenghtSpinBox = QtGui.QSpinBox(self.layoutWidget)
        self.fieldLenghtSpinBox.setMinimum(5)
        self.fieldLenghtSpinBox.setMaximum(8)
        self.fieldLenghtSpinBox.setProperty("value",QtCore.QVariant(8))
        self.fieldLenghtSpinBox.setObjectName("fieldLenghtSpinBox")
        self.gridlayout.addWidget(self.fieldLenghtSpinBox,2,6,1,1)

        self.label_4 = QtGui.QLabel(self.layoutWidget)
        self.label_4.setObjectName("label_4")
        self.gridlayout.addWidget(self.label_4,3,0,1,2)

        spacerItem3 = QtGui.QSpacerItem(91,20,QtGui.QSizePolicy.Expanding,QtGui.QSizePolicy.Minimum)
        self.gridlayout.addItem(spacerItem3,3,2,1,4)

        self.bitsNumSpinBox = QtGui.QSpinBox(self.layoutWidget)
        self.bitsNumSpinBox.setMinimum(1)
        self.bitsNumSpinBox.setMaximum(2)
        self.bitsNumSpinBox.setObjectName("bitsNumSpinBox")
        self.gridlayout.addWidget(self.bitsNumSpinBox,3,6,1,1)

        self.label_5 = QtGui.QLabel(self.layoutWidget)
        self.label_5.setObjectName("label_5")
        self.gridlayout.addWidget(self.label_5,4,0,1,4)

        spacerItem4 = QtGui.QSpacerItem(40,20,QtGui.QSizePolicy.Expanding,QtGui.QSizePolicy.Minimum)
        self.gridlayout.addItem(spacerItem4,4,4,1,1)

        self.parityComboBox = QtGui.QComboBox(self.layoutWidget)
        self.parityComboBox.setObjectName("parityComboBox")
        self.gridlayout.addWidget(self.parityComboBox,4,5,1,2)

        self.label_6 = QtGui.QLabel(self.layoutWidget)
        self.label_6.setObjectName("label_6")
        self.gridlayout.addWidget(self.label_6,5,0,1,2)

        spacerItem5 = QtGui.QSpacerItem(40,20,QtGui.QSizePolicy.Expanding,QtGui.QSizePolicy.Minimum)
        self.gridlayout.addItem(spacerItem5,5,4,1,1)

        self.endLineEdit = QtGui.QLineEdit(self.layoutWidget)
        self.endLineEdit.setMaxLength(4)
        self.endLineEdit.setObjectName("endLineEdit")
        self.gridlayout.addWidget(self.endLineEdit,5,5,1,2)
        self.hboxlayout.addLayout(self.gridlayout)

        self.groupBox = QtGui.QGroupBox(self.layoutWidget)
        self.groupBox.setObjectName("groupBox")

        self.gridlayout1 = QtGui.QGridLayout(self.groupBox)
        self.gridlayout1.setObjectName("gridlayout1")

        self.dtrRadioButton = QtGui.QRadioButton(self.groupBox)
        self.dtrRadioButton.setEnabled(False)
        self.dtrRadioButton.setObjectName("dtrRadioButton")
        self.gridlayout1.addWidget(self.dtrRadioButton,0,0,1,1)

        self.rtsRadioButton = QtGui.QRadioButton(self.groupBox)
        self.rtsRadioButton.setChecked(True)
        self.rtsRadioButton.setObjectName("rtsRadioButton")
        self.gridlayout1.addWidget(self.rtsRadioButton,1,0,1,1)

        self.xonRadioButton = QtGui.QRadioButton(self.groupBox)
        self.xonRadioButton.setObjectName("xonRadioButton")
        self.gridlayout1.addWidget(self.xonRadioButton,2,0,1,1)
        self.hboxlayout.addWidget(self.groupBox)

        self.polecenie = QtGui.QLineEdit(Dialog)
        self.polecenie.setGeometry(QtCore.QRect(20,440,381,22))
        self.polecenie.setObjectName("polecenie")

        self.label_7 = QtGui.QLabel(Dialog)
        self.label_7.setGeometry(QtCore.QRect(10,440,16,16))
        self.label_7.setObjectName("label_7")

        self.pushButton_2 = QtGui.QPushButton(Dialog)
        self.pushButton_2.setGeometry(QtCore.QRect(400,440,77,28))
        self.pushButton_2.setObjectName("pushButton_2")

        self.retranslateUi(Dialog)
        QtCore.QObject.connect(self.pushButton_2,QtCore.SIGNAL("clicked()"),self.ekran.clear)
        QtCore.QMetaObject.connectSlotsByName(Dialog)
        Dialog.setTabOrder(self.portComboBox,self.speedComboBox)
        Dialog.setTabOrder(self.speedComboBox,self.fieldLenghtSpinBox)
        Dialog.setTabOrder(self.fieldLenghtSpinBox,self.bitsNumSpinBox)
        Dialog.setTabOrder(self.bitsNumSpinBox,self.parityComboBox)
        Dialog.setTabOrder(self.parityComboBox,self.endLineEdit)
        Dialog.setTabOrder(self.endLineEdit,self.dtrRadioButton)
        Dialog.setTabOrder(self.dtrRadioButton,self.rtsRadioButton)
        Dialog.setTabOrder(self.rtsRadioButton,self.xonRadioButton)
        Dialog.setTabOrder(self.xonRadioButton,self.ekran)
        Dialog.setTabOrder(self.ekran,self.pushButton)

    def retranslateUi(self, Dialog):
        Dialog.setWindowTitle(QtGui.QApplication.translate("Dialog", "Rs232-Terminal", None, QtGui.QApplication.UnicodeUTF8))
        self.pushButton.setText(QtGui.QApplication.translate("Dialog", "PING", None, QtGui.QApplication.UnicodeUTF8))
        self.label.setText(QtGui.QApplication.translate("Dialog", "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
        "p, li { white-space: pre-wrap; }\n"
        "</style></head><body style=\" font-family:\'Sans Serif\'; font-size:10pt; font-weight:400; font-style:normal;\">\n"
        "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-weight:600; color:#0000ff;\">Port</span></p></body></html>", None, QtGui.QApplication.UnicodeUTF8))
        self.label_2.setText(QtGui.QApplication.translate("Dialog", "Prędkość transmisji", None, QtGui.QApplication.UnicodeUTF8))
        self.label_3.setText(QtGui.QApplication.translate("Dialog", "Długość pola danych", None, QtGui.QApplication.UnicodeUTF8))
        self.label_4.setText(QtGui.QApplication.translate("Dialog", "Ilość bitów stopu", None, QtGui.QApplication.UnicodeUTF8))
        self.label_5.setText(QtGui.QApplication.translate("Dialog", "Kontrola parzystości", None, QtGui.QApplication.UnicodeUTF8))
        self.label_6.setText(QtGui.QApplication.translate("Dialog", "Znacznik końca", None, QtGui.QApplication.UnicodeUTF8))
        self.groupBox.setTitle(QtGui.QApplication.translate("Dialog", "Kontrola transmisji", None, QtGui.QApplication.UnicodeUTF8))
        self.dtrRadioButton.setText(QtGui.QApplication.translate("Dialog", "DTR/DSR", None, QtGui.QApplication.UnicodeUTF8))
        self.rtsRadioButton.setText(QtGui.QApplication.translate("Dialog", "RTS/CTS", None, QtGui.QApplication.UnicodeUTF8))
        self.xonRadioButton.setText(QtGui.QApplication.translate("Dialog", "XON/XOFF", None, QtGui.QApplication.UnicodeUTF8))
        self.label_7.setText(QtGui.QApplication.translate("Dialog", "$", None, QtGui.QApplication.UnicodeUTF8))
        self.pushButton_2.setText(QtGui.QApplication.translate("Dialog", "ClearView", None, QtGui.QApplication.UnicodeUTF8))

